Page({
	data: {

	},
	onLoad: function() {

	},
	
	toCoupon() {
		wx.navigateTo({ url: "../coupon/coupon" });
	},
	
	toMyCoupon() {
	  if (!wx.getStorageSync("userInfo")) {
		wx.navigateTo({
		  url: "../login/login",
		});
		return;
	  }
	  wx.navigateTo({ url: "../myCoupon/myCoupon" });
	}
})
